file = open("C:/Users/Lenovo/Desktop/words.txt","w",encoding="UTF-8")
file.write("Hello World!\nI  will enjoy the world！")
file.flush()
file = open("C:/Users/Lenovo/Desktop/words.txt","r",encoding="UTF-8")
a = file.read()
print(a)
file = open("C:/Users/Lenovo/Desktop/words.txt","a",encoding="UTF-8")
a = file.write("I love the world!")
file.flush()
file = open("C:/Users/Lenovo/Desktop/words.txt","r",encoding="UTF-8")
a = file.read()
print(a)
